package com.niit.factory;

/**
 * @author hanli
 * @date 2025/3/4
 * @description TODO
 */
public class PhoneFactory {

    public Phone getPhone(String brand){
        if("XM".equals(brand)){
            return new XiaoMiPhone();
        }else if("HW".equals(brand)){
            return new HuaiWeiPhone();
        }
        return null;
    }
}